package com.wqiuqiu.gulimall.product.feign;


import com.wqiuqiu.common.R;
import com.wqiuqiu.common.to.es.HasWareTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    @RequestMapping("/ware/waresku/info/{id}")
    R info(@PathVariable("id") Long id);
    @PostMapping("/ware/waresku/getware")
    R getWarebySkuIds(@RequestBody List<Long> skuIds);
}
